package com.arcvideo.acsconnect.rest.model;

/**
 * @author shenmengchao
 * @version 1.0.0
 * @date 2018/8/14
 * @description
 */

public class UserBean {

    private final static String ONLINE_STATUS_ONLINE = "1";//在线
    private final static String ONLINE_STATUS_OFFLINE = "0";//离线

    private boolean checked;
    /**
     * account : elder2
     * password : 96e79218965eb72c92a549dd5a330112
     * age : 63
     * sex : 女
     * city : 杭州
     * county : 西湖
     * address : 雷峰塔五楼
     * phone : 123456789
     * headPicUrl : http: //localhost: 8080/head2.jpg
     * accessKey : test_access_key2
     * accessSecret : test_access_secret2
     * online : 0
     * remark :
     * type : 1
     * createTime : 2018-08-1316: 55: 43
     * updateTime : 2018-08-1316: 55: 46
     */

    private String account;
    private String password;
    private String name;
    private String age;
    private String sex;
    private String city;
    private String county;
    private String address;
    private String phone;
    private String headPicUrl;
    private String accessKey;
    private String accessSecret;
    private String online;
    private String remark;
    private String type;
    private String createTime;
    private String updateTime;
    private String id;


    public UserBean() {

    }

    public boolean isOnline(){
        return ONLINE_STATUS_ONLINE.equals(online);
    }

    public void setOnline(boolean isOnline){
        if(isOnline){
            online = ONLINE_STATUS_ONLINE;
        }else{
            online = ONLINE_STATUS_OFFLINE;
        }
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHeadPicUrl() {
        return headPicUrl;
    }

    public void setHeadPicUrl(String headPicUrl) {
        this.headPicUrl = headPicUrl;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getAccessSecret() {
        return accessSecret;
    }

    public void setAccessSecret(String accessSecret) {
        this.accessSecret = accessSecret;
    }

    public String getOnline() {
        return online;
    }

    public void setOnline(String online) {
        this.online = online;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

}
